using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ProjetoMultimidia.UI
{
    public partial class FrmPrincipal : Form
    {
        public FrmPrincipal()
        {
            InitializeComponent();
        }

        private void sobreToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmSobre frmSobre = new FrmSobre();
            frmSobre.ShowDialog(this);
            frmSobre.Dispose();
            frmSobre = null;
        }
        
        private void imagemToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.openFileDialog1.Multiselect = false;
            this.openFileDialog1.ShowDialog(this);

            FrmImagemWorkspace frmImage = new FrmImagemWorkspace();
            frmImage.MdiParent = this;
            frmImage.Show();
        }

        private void videoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.openFileDialog1.Multiselect = true;
            this.openFileDialog1.ShowDialog(this);

            FrmVideoWorkspace frmVideo = new FrmVideoWorkspace();
            frmVideo.MdiParent = this;
            frmVideo.Show();
        }

        private void salvarStripMenuItem1_Click(object sender, EventArgs e)
        {
            this.saveFileDialog1.ShowDialog();
        }

        private void sToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            GC.Collect();
        }
    }
}